package com.yuyou.tas.service.api.feedback.service;

import com.yuyou.tas.service.api.feedback.dto.FeedbackCommentDTO;
import com.yuyou.tas.service.api.feedback.vo.resp.UnReadSimpleVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "tas-feedback-service")
@RequestMapping(value = "/feedbackCommentAPI")
public interface FeedbackCommentAPI {

    @RequestMapping(value = "/saveFeedbackComment" ,method=RequestMethod.POST)
    Long saveFeedbackComment(@RequestParam("feedbackId")Long feedbackId , @RequestParam("content")String content ,
                             @RequestParam("organId")Long organId, @RequestParam("userId")Long userId,
                             @RequestParam("type")Integer type);

    @RequestMapping(value = "/feedbackCommentList")
    List<FeedbackCommentDTO> feedbackCommentList(@RequestParam("feedbackId")Long feedbackId);


    @RequestMapping(value = "/getTeacherUnReadCount")
    Integer getTeacherUnReadCount(@RequestParam("userId")Long userId);

    /**
     * 根据班级ids获取教师全部未读反馈回复
     * @param userId
     * @param list
     */
    @RequestMapping(value = "/getTeacherClassUnReadCount")
    List<UnReadSimpleVo> getTeacherClassUnReadCount(@RequestParam("userId")Long userId ,
                                                    @RequestParam("list")List<Long> list);
}
